<?php
namespace app\index\controller;
use app\index\controller\Base;
class Cate extends Base
{
    public function index()
    {
        $cateid = input('cateid');
        $catename = input('catename');
        $result = db('article')->where('cateid', $cateid)->paginate(2);
        $this->assign('articleList',$result);
        $this->assign('catename',$catename);
        return $this->fetch('cate');  
        
    }
}
